$(document).ready(function(){
	var nickName = sessionStorage.getItem("accountNickName");
	var avatar = sessionStorage.getItem("accountAvatar");
	var tokenCode = sessionStorage.getItem("tokenCode");
	//创建顶部通顶栏
	pageInit.createTopBar({
		nickname:nickName,
		avatar:avatar,
		topElement:"navbar"
	});
	//pageInit.createMenuBar();
});

var stopSubmit = function(attrId){
	var submitBtn = document.getElementById(attrId);
	submitBtn.onclick = function (event) {
	var event = event || window.event;
	event.preventDefault(); // 兼容标准浏览器
	window.event.returnValue = false; // 兼容IE6~8
};	

}